/*
 * Copyright Groupe Adeo 2009
 * 
 * Licensed under New BSD License : http://www.opensource.org/licenses/bsd-license.php
 */
package com.adeoservices.gwt.dispatch.spring.server.handler;

import net.customware.gwt.dispatch.server.ActionHandler;
import net.customware.gwt.dispatch.server.ActionHandlerRegistry;
import net.customware.gwt.dispatch.shared.Action;
import net.customware.gwt.dispatch.shared.Result;

/**
 * 
 * @author Olivier HEDIN / Adeo Services
 * 
 * Subclass for action handlers that registers itself on the ActionHandlerFactory
 *
 * @param <A> Action type
 * @param <R> Result type
 */
public abstract class SpringActionHandler<A extends Action<R>, R extends Result> implements ActionHandler<A, R> {

	public SpringActionHandler(ActionHandlerRegistry actionHandlerRegistry)
	{
		actionHandlerRegistry.addHandler(this);
	}
}
